/**
 * 
 */
package com.taobao.api.util;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * @version 2008-11-20
 * @author <a href="mailto:zixue@taobao.com">zixue</a>
 * 
 */
public class EncodeUtil {

	public static String encodeUrl(String url) {
		String out = null;
		try {
			out = URLEncoder.encode(url, "utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return out;
	}

}
